<?php
namespace app\index\controller;
use think\Db;
use think\Controller;
class Base extends Controller
{
	public function initialize(){
        $sales=Db::name('sale_service')->where('state',1)->order('id asc')->select();
        $traval=Db::name('company')->where('state',1)->order('id asc')->select();
        $this->assign('sales',$sales);
        $this->assign('traval',$traval);
	}
	public function system_set(){
        $system=Db::name('system_set')->where('id',1)->find();
        $system['url']=$this->request->domain();
        return $system;
	}
}